<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>应用模块添加</title>
    <link rel="stylesheet" type="text/css" href="${s.base}/lib/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="${s.base}/css/base/index.css" />
    <link rel="stylesheet" type="text/css" href="${s.base}/lib/dtree/dtree.css" />
    <link rel="stylesheet" type="text/css" href="${s.base}/lib/dtree/font/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="${s.base}/css/base/darkBlue.css"/>
</head>
<body>
<div class="page-content-wrap">
    <form class="layui-form">
        <div class="layui-tab" style="margin: 0;">
            <div class="layui-tab-content">
                <div class="layui-tab-item"></div>
                <div class="layui-tab-item layui-show">
                    <input type="hidden" class="form-control id" id="id" name="id" value="${sysAppModule.id}" />
                    <div class="layui-form-item">
                        <label class="layui-form-label">应用名称：</label>
                        <div class="layui-input-block">
                            <!--<input type="text" name="name" required  lay-verify="required" placeholder="请输入应用名称" valuesysAppModuledule.name}" autocomplete="off" class="layui-input">-->
                            ${sysAppModule.name}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">应用代码：</label>
                        <div class="layui-input-block">
                            <!--<input type="text" name="code" required lay-verify="required" placeholder="请输入应用描述" valuesysAppModuledule.code}" autocomplete="off" class="layui-input">-->
                            ${sysAppModule.code}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">公钥：</label>
                        <div class="layui-input-block secret-key-over">
                            <!--<input type="text" name="publicKey" required lay-verify="required" placeholder="公钥" valuesysAppModuledule.publicKey}" autocomplete="off" class="layui-input">-->
                            ${sysAppModule.publicKey}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">私钥：</label>
                        <div class="layui-input-block secret-key-over">
                            ${sysAppModule.privateKey}
                            <!--<input type="text" name="privateKey" required lay-verify="required" placeholder="私钥" valuesysAppModuledule.privateKey}" autocomplete="off" class="layui-input">-->
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">启用状态：</label>
                        <div class="layui-input-block">
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">应用描述：</label>
                        <div class="layui-input-block">
                            ${sysAppModule.description}
                            <!--<textarea class="layui-textarea" name="description" lay-verify="content" placeholder="请输入应用描述" id="LAY_demo_editorsysAppModuledule.description}</textarea>-->
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">菜单权限：</label>
                        <div class="layui-input-block overauto scrollbar">
                            <input type="hidden" name="menuIds" id="menuIds" value="${sysAppModule.menuIds}" />
                            <ul id="menu" class="dtree" data-id="0" data-selector-type="mult"></ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-pop-btn">
            <div class="">
                <button type="button " id="cancel" class="layui-btn layui-btn-normal">取消</button>
            </div>
        </div>
    </form>
</div>

<script src="${s.base}/lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="${s.base}/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>
    layui.use(['form', 'jquery', 'laydate', 'layer', 'dialog','baseutil','page','dtreeUtil'], function() {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.jquery,
            baseutil = layui.baseutil,
            dialog = layui.dialog,
            dtreeUtil = layui.dtreeUtil;
        var page = layui.page;
        page.initDict("base_status",function (dictData) {
            page.showDict($("#status"), page.aceeptDictContentList(dictData, "base_status"), "",'${sysAppModule.status}');
        });
        var  menuIds='${sysAppModule.menuIds}';
        dtreeUtil.pageDtree("#menu","/sysMenu/dTreeList",true,function (data,obj) {
            if(!isBlank(menuIds)){
                dtreeUtil.chooseDataInit("menu",menuIds);
            }
        });
    });
</script>
</body>

</html>